package com.leyou.service;

import com.leyou.common.vo.PageResult;
import com.leyou.search.pojo.SkuDTO;
import com.leyou.search.pojo.SpuDTO;
import com.leyou.search.pojo.SpuDetailDTO;

import java.util.List;
import java.util.Map;

public interface IgoodsService {
    PageResult<SpuDTO> querySpuByPage(Integer page, Integer rows, Boolean saleable, String key);

    void saveGoods(SpuDTO spuDTO);

    void updateSpuSaleable(Long id, Boolean saleable);

    SpuDetailDTO querySpuDetailById(Long spuId);

    List<SkuDTO> querySkuBySpuId(Long spuId);

    void UpdateGoods(SpuDTO spuDTO);

    SpuDTO querySpuById(Long id);

    List<SkuDTO> querySkuByIds(List<Long> ids);

    void minusStock(Map<Long, Integer> map);

    void plusStock(Map<Long, Integer> map);
}
